package com.lagou.sqlSession;
/*
 * PackageName: com.lagou.sqlSession
 * ClassName:   DefaultSqlSessionFactory
 * Author:   zhang
 * Date:     Created in 2020/9/29
 * Description:
 * History:
 * <author>        <time>             <version>          <desc>
 * 作者姓名         修改时间            版本号              描述
 * zhang           2020/9/29      1.0
 */

import com.lagou.pojo.Configuration;

/**
 * Title:
 * Project: IPersistence_test
 *
 * @author ZhangKe
 * Created on 2020/9/29
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSqlSession(configuration);
    }
}
